Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ssi): add credential issuer and credential subject id validation rules #548

Conversation

wolf4ood
Copy link
Contributor

@wolf4ood wolf4ood commented Jun 29, 2023

WHAT

Adds two more validation rule in the validation pipeline:

  • SsiCredentialIssuerValidationRule checks that the issuer of the credential matches the configured one.
  • SsiCredentialSubjectIdValidationRule checks that the issuer of the VP matches the credential subject id of the VC

WHY

Probably those checks are duplicated with MIW, but in case we also would want to check that on our side.

By default the authorityIssuer is composed with `did:web::

@wolf4ood wolf4ood force-pushed the feat/add_credential_validation_rules branch 5 times, most recently from d4e0ec2 to e04a2ea Compare June 30, 2023 14:44
@wolf4ood wolf4ood marked this pull request as ready for review June 30, 2023 15:09
Copy link
Contributor

@paullatzelsperger paullatzelsperger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nits

@wolf4ood wolf4ood force-pushed the feat/add_credential_validation_rules branch 3 times, most recently from c21c250 to 24eeffe Compare July 3, 2023 09:27
@wolf4ood wolf4ood force-pushed the feat/add_credential_validation_rules branch 3 times, most recently from c5b31c7 to 913fc87 Compare July 3, 2023 11:22
@wolf4ood wolf4ood force-pushed the feat/add_credential_validation_rules branch from 913fc87 to 1631ab7 Compare July 3, 2023 11:47
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@tuncaytunc-zf tuncaytunc-zf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@paullatzelsperger paullatzelsperger merged commit 55e1751 into eclipse-tractusx:main Jul 4, 2023
paullatzelsperger pushed a commit that referenced this pull request Jul 4, 2023
… rules (#548)

* feat(Ssi): add credential issuer and credential subject id validation rules

* fix after review

* fix helm tests
paullatzelsperger pushed a commit to paullatzelsperger/tractusx-edc that referenced this pull request Jul 4, 2023
… rules (eclipse-tractusx#548)

* feat(Ssi): add credential issuer and credential subject id validation rules

* fix after review

* fix helm tests
@wolf4ood wolf4ood deleted the feat/add_credential_validation_rules branch July 17, 2023 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

4 participants